package com.yuexunit.application.action.v1.model;

import com.yuexunit.web.annotation.Parameter;

public class UpdateInfo {
	@Parameter(description="0-已经是最新版本，不需要升级；1-不是最新版本，提示升级；2-不是最新版，需要强制升级")
	private Integer upgrade;
	
	@Parameter(description="最新版本")
	private String latestVersion;
	
	@Parameter(description="更新标题")
	private String title;

	@Parameter(description="更新内容")
	private String content;

	@Parameter(description="下载地址")
	private String downloadUrl;

	public Integer getUpgrade() {
		return upgrade;
	}

	public void setUpgrade(Integer upgrade) {
		this.upgrade = upgrade;
	}

	public String getLatestVersion() {
		return latestVersion;
	}

	public void setLatestVersion(String latestVersion) {
		this.latestVersion = latestVersion;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getDownloadUrl() {
		return downloadUrl;
	}

	public void setDownloadUrl(String downloadUrl) {
		this.downloadUrl = downloadUrl;
	}
	
	
	@Override
	public String toString() {
		StringBuffer result = new StringBuffer();
		
		result.append(getClass().getName())
			.append(": upgrade=").append(upgrade)
			.append(", latestVersion='").append(latestVersion).append("'")
			.append(", title='").append(title).append("'")
			.append(", content='").append(content).append("'")
			.append(", downloadUrl='").append(downloadUrl).append("'")
			;
		
		return result.toString();
	}
}
